﻿namespace HRM.CORE
{
    using DevExpress.Utils;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.Layout;
    using APP.HELPER;
    using HRM.CORE;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms; using Common;
    using Common;
    using DevExpress.XtraGrid.Views.Base;
    using DevExpress.XtraLayout;

    public class xucDecide : Common.xucBase
    {
        private IContainer components = null;
        private GridControl gridControl1;
        private LayoutView layoutView1;
        private LayoutViewCard layoutViewCard1;
        private LayoutViewColumn layoutViewColumn1;
        private LayoutViewColumn layoutViewColumn2;
        private LayoutViewColumn layoutViewColumn3;
        private LayoutViewColumn layoutViewColumn4;
        private LayoutViewField layoutViewField_layoutViewColumn1;
        private LayoutViewField layoutViewField_layoutViewColumn2;
        private LayoutViewField layoutViewField_layoutViewColumn3;
        private LayoutViewField layoutViewField_layoutViewColumn4;

        public xucDecide()
        {
            this.InitializeComponent();
            this.Init();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Init()
        {
            base.SetWaitDialogCaption("Đang khởi tạo dữ liệu...");
            this.gridControl1.DataSource = new HRM_EMPLOYEE().GetListCurrentNow(0, "", -1);
        }

        private void InitializeComponent()
        {
            this.gridControl1 = new GridControl();
            this.layoutView1 = new LayoutView();
            this.layoutViewColumn1 = new LayoutViewColumn();
            this.layoutViewField_layoutViewColumn1 = new LayoutViewField();
            this.layoutViewColumn2 = new LayoutViewColumn();
            this.layoutViewField_layoutViewColumn2 = new LayoutViewField();
            this.layoutViewColumn3 = new LayoutViewColumn();
            this.layoutViewField_layoutViewColumn3 = new LayoutViewField();
            this.layoutViewColumn4 = new LayoutViewColumn();
            this.layoutViewField_layoutViewColumn4 = new LayoutViewField();
            this.layoutViewCard1 = new LayoutViewCard();
            this.gridControl1.BeginInit();
            this.layoutView1.BeginInit();
            this.layoutViewField_layoutViewColumn1.BeginInit();
            this.layoutViewField_layoutViewColumn2.BeginInit();
            this.layoutViewField_layoutViewColumn3.BeginInit();
            this.layoutViewField_layoutViewColumn4.BeginInit();
            this.layoutViewCard1.BeginInit();
            base.SuspendLayout();
            this.gridControl1.Dock = DockStyle.Fill;
            this.gridControl1.Location = new Point(0, 0);
            this.gridControl1.MainView = this.layoutView1;
            this.gridControl1.Name = "gridControl1";
            this.gridControl1.Size = new Size(0x279, 430);
            this.gridControl1.TabIndex = 0;
            this.gridControl1.ViewCollection.AddRange(new BaseView[] { this.layoutView1 });
            this.layoutView1.Columns.AddRange(new LayoutViewColumn[] { this.layoutViewColumn1, this.layoutViewColumn2, this.layoutViewColumn3, this.layoutViewColumn4 });
            this.layoutView1.GridControl = this.gridControl1;
            this.layoutView1.Name = "layoutView1";
            this.layoutView1.OptionsSingleRecordMode.StretchCardToViewHeight = true;
            this.layoutView1.OptionsSingleRecordMode.StretchCardToViewWidth = true;
            this.layoutView1.OptionsView.ContentAlignment = ContentAlignment.TopCenter;
            this.layoutView1.OptionsView.ViewMode = LayoutViewMode.MultiRow;
            this.layoutView1.TemplateCard = this.layoutViewCard1;
            this.layoutViewColumn1.Caption = "M\x00e3 nh\x00e2n vi\x00ean:";
            this.layoutViewColumn1.FieldName = "EmployeeCode";
            this.layoutViewColumn1.LayoutViewField = this.layoutViewField_layoutViewColumn1;
            this.layoutViewColumn1.Name = "layoutViewColumn1";
            this.layoutViewField_layoutViewColumn1.EditorPreferredWidth = 10;
            this.layoutViewField_layoutViewColumn1.Location = new Point(0, 0);
            this.layoutViewField_layoutViewColumn1.Name = "layoutViewField_layoutViewColumn1";
            this.layoutViewField_layoutViewColumn1.Size = new Size(0x73, 20);
            this.layoutViewField_layoutViewColumn1.TextSize = new Size(0x48, 13);
            this.layoutViewColumn2.Caption = "Họ nh\x00e2n vi\x00ean";
            this.layoutViewColumn2.FieldName = "FirstName";
            this.layoutViewColumn2.LayoutViewField = this.layoutViewField_layoutViewColumn2;
            this.layoutViewColumn2.Name = "layoutViewColumn2";
            this.layoutViewField_layoutViewColumn2.EditorPreferredWidth = 10;
            this.layoutViewField_layoutViewColumn2.Location = new Point(0, 20);
            this.layoutViewField_layoutViewColumn2.Name = "layoutViewField_layoutViewColumn2";
            this.layoutViewField_layoutViewColumn2.Size = new Size(0x73, 20);
            this.layoutViewField_layoutViewColumn2.TextSize = new Size(0x48, 13);
            this.layoutViewColumn3.Caption = "T\x00ean nh\x00e2n vi\x00ean";
            this.layoutViewColumn3.FieldName = "LastName";
            this.layoutViewColumn3.LayoutViewField = this.layoutViewField_layoutViewColumn3;
            this.layoutViewColumn3.Name = "layoutViewColumn3";
            this.layoutViewField_layoutViewColumn3.EditorPreferredWidth = 10;
            this.layoutViewField_layoutViewColumn3.Location = new Point(0, 40);
            this.layoutViewField_layoutViewColumn3.Name = "layoutViewField_layoutViewColumn3";
            this.layoutViewField_layoutViewColumn3.Size = new Size(0x73, 20);
            this.layoutViewField_layoutViewColumn3.TextSize = new Size(0x48, 13);
            this.layoutViewColumn4.Caption = "Ng\x00e0y sinh";
            this.layoutViewColumn4.FieldName = "Birthday";
            this.layoutViewColumn4.LayoutViewField = this.layoutViewField_layoutViewColumn4;
            this.layoutViewColumn4.Name = "layoutViewColumn4";
            this.layoutViewField_layoutViewColumn4.EditorPreferredWidth = 10;
            this.layoutViewField_layoutViewColumn4.Location = new Point(0, 60);
            this.layoutViewField_layoutViewColumn4.Name = "layoutViewField_layoutViewColumn4";
            this.layoutViewField_layoutViewColumn4.Size = new Size(0x73, 20);
            this.layoutViewField_layoutViewColumn4.TextSize = new Size(0x48, 13);
            this.layoutViewCard1.ExpandButtonLocation = GroupElementLocation.AfterText;
            this.layoutViewCard1.Items.AddRange(new BaseLayoutItem[] { this.layoutViewField_layoutViewColumn1, this.layoutViewField_layoutViewColumn2, this.layoutViewField_layoutViewColumn3, this.layoutViewField_layoutViewColumn4 });
            this.layoutViewCard1.Name = "layoutViewCard1";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.gridControl1);
            base.Name = "xucDecide";
            base.Size = new Size(0x279, 430);
            this.gridControl1.EndInit();
            this.layoutView1.EndInit();
            this.layoutViewField_layoutViewColumn1.EndInit();
            this.layoutViewField_layoutViewColumn2.EndInit();
            this.layoutViewField_layoutViewColumn3.EndInit();
            this.layoutViewField_layoutViewColumn4.EndInit();
            this.layoutViewCard1.EndInit();
            base.ResumeLayout(false);
        }
    }
}

